$(function()
{
	
	$('#submit').attr('disabled', 'disabled');
	
	$('#id_user').change(function(){
		var val = $(this).val();
		
		if ('' == val)
		{
			$('#submit').attr('disabled', 'disabled');
		}
		else
		{
			$('#submit').attr('disabled', '');
		}
	});
	
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------	

	$('#archive').change(function(){
		
		var aDate = $(this).val();
		var idUser = $('#id_user').val();
		
		window.location.href = 'http://time.vlfn.nl/admin/report/?archive=' + aDate + '&id_user=' + idUser;
	});

//----------------------------------------------------------------------------------------------------------------------------------------------------------------------	
		
	
});